<?php

namespace Home\Model;

use Mine\Models\MasterModel;

class Album extends MasterModel {
	public $id;
	public $artist;
	public $title;
	
	public function exchangeArray($data) {
		$this->id = (isset ( $data ['id'] )) ? $data ['id'] : null;
		$this->artist = (isset ( $data ['artist'] )) ? $data ['artist'] : null;
		$this->title = (isset ( $data ['title'] )) ? $data ['title'] : null;
	}
	
	public function __construct($data) {
		parent::__construct($data);
		$this->id = (isset ( $data ['id'] )) ? $data ['id'] : null;
		$this->artist = (isset ( $data ['artist'] )) ? $data ['artist'] : null;
		$this->title = (isset ( $data ['title'] )) ? $data ['title'] : null;
	}
}